package lab02.Text28;

import java.util.Scanner;

/**
 * Created by Administrator on 2017/11/5.
 */
public class Text {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System .in);
       double r=Integer.parseInt(scanner.next());
        System.out.println("圆的面积为:"+3.14*r*r);
        try {
            System.out.println("请输入圆的半径：");
        }
        catch(NumberFormatException e){
            System.out.println("输入的不是double类型的数据：");
        }
        finally {
            System.out.println("重新输入正确的数据：");
        }


    }
}
